Added a catch statement that may have been missing.

If something was uploaded that was not valid JSON, it could have caused an uncaught exception. It is now being caught.

References #543