fix #508: crash when parsing empty query part

This is a regression created by my endeavor to have parse_query_part never
return None. Now the regular expression should really always match.