Null check for messageController