Fixed a crash

Crash was happening because of not handling NSJSONSerialization
returning NSNull instances