Fix trying to get messages when they were null.

Signed-off-by: Staartvin <mijnleraar@msn.com>