[0.0.9] Fix crash on invalid messages