XWIKI-11067: Add ability to catch exception from velocity scripts
* Fixed checkstyle error introduced in previous commit