Bugfix: handling nullpointer exception at message load.