Check if callback is enabled before deregistering the callback