Fix for https://github.com/hawtio/hawtio/issues/1802.