Bayesian Flow Networks in Continual Learning