fixed #2754: Fixed the bug that _getResType error when the url of res is like "a.png?arg=value".