Fixed message initialization bug in FactorGraphProvider that lead to messages being null during the computation