Fix issue https://github.com/ocpsoft/prettyfaces/issues/18, with test.