concrete5/concrete5-5.7.0 — pull request #414 by EC-Joe (2014-07-11 00:48:53+00:00)
Title: fixes getJSONObject call on file deletion

So it seems like most of the other scenarios were cleared up at some point between last night and today via other fixes, however i'm still getting a "getJSONObject function not found" error when deleting files. Upon further investigation I found that the version is actually gone by the time the function gets called. Checking if we have any active versions on the file and returning null if not seems to fix the issue and so far I haven't found that it has broken anything else.