Check if the app is enabled and the app path is found before trying to load the script file
Merge pull request #3891 from owncloud/fix_loadAppScriptFile

Check if the app is enabled and the app path is found before trying to l...