Simplify parse error detection in ut.getEntity()