Fixed match group when match object group method returns None.