Fix NPE in AutoHideController.