fix lua error in rare cases with on mouseover targeting

Fix bug where wndControl:GetData()[1] did not exist somehow. I don't
think it should happen since if wndControl() is nil it will return
earlier. Yet a user reported it did so some extra checks.