ref-filter: change parsing function error handling