nested hooks fix

as implemented in 4.3: https://github.com/atk4/atk4/commit/259222e1b05009f7e38f6b9b1374e6b743848154