preproc.c: fixed error handling within PP_ENDIF