[PATCH 6.11 204/245] Input: fix regression when re-registering input handlers