added null check
Merge pull request #5 from BedeGaming/Bug/CMS-855/ContentTypeNull

added null check