Only run hide function if picker is visible

Fixes #310