Fixed app crash on corrupt JSONObject sent to add object methods.