updated enum type to provide non-valid enum type when invalid id is
passed to do reverse lookup.