Remove '?' from paths with empty queries

If a path with an empty query exists (i.e. ../fonts/somefont.eot?#iefix) the '?' character is not properly replaced, resulting in a warning (Can't resolve image path: ../fonts/somefont.eot?). This fix takes care of these warnings.