XWIKI-9674: Stop supporting URL rewriting when cookies are turned off
* Added unit test