Fixes problem with handling urls made of get parameters only.