Fixed #19988 -- Updated is_safe filter check for integer variables.