allow invalid locations to be disabled anyway, #23446