Minor: improved message in case the record type is unknown (instead of NPE)