Fixed issue using NSJSONSerialization when data parameter could be nil.