#5206 fixed try-catch
Merge pull request #5207 from dotCMS/issue-5206-browserajax-compile

#5206 fixed try-catch