Fix some issues with the Undertow resource manager