Ensure messages are non-null

Checks
1. error.message()
2. logMessage
3. 'No message'
Merge pull request #4 from SquareSquash/kiran/message-null

Ensure messages are non-null