[TIMOB-13186] Reworked unknown value detection to be more accurate