Handle null media
test for media == null
refactoring test for null media
Merge pull request #75 from buddycloud/issues/74

Handle null media response