key not in map exception handling