fix mouse input crash with non-visible nodes