Fixed empty query string processing.