pet_scop_extract_from_C_source: return NULL in case of errors