Fix BaseXMLResponseParser._handle_map to not crash

key_name and val_name are set inside of the loop over
keyval_node pairs. parsed[key_name] = val_name should
also be in that loop.

The crash is caused by key_name and val_name being
referenced from outside of the loop, where they may be
used before they have been set.