null check attributes because on a 204 they wont be here
added tests
Merge pull request #126 from sportngin/nullCheckAttributes

Null check attributes