Prevent crash/extra callbacks when JSON is invalid