Fixed a crash in metadata item creation that occurred when request_params was't a serialized hash in the database