Fixed bad parameter issue iOS

Fixed issue when sending an inappropriate parameter like boolean,
string, etc and not an object/nsdictionary on iOS