Adding check for not null content as noted by benbro

https://github.com/danielneis/moodle-block_newblock/issues/1