Test 0-length parses, fix a bug triggered by them