Protect against NPE when the error that p:catch catches doesn't supply an error code
Make sure the xml:base associated with a directory has a trailing slash