[patch added to the 3.12 stable tree] tick-common: Fix wrong check in tick_check_replacement()