fixed is_chiral_match() to handle the case of molecules without
chirality and templates with chirality