core: check for return value from get_process_state

Fix for commit e10c9985bb.
bus: fix match_parse for unquoted matches