Fix some missing OBJ_dup failure checks.