Handle null debug messages
Fixes #200