Fix to only hide picker if it is infact visible

This is needed because hidepicker is called on document mouseodwn so
basically it keeps running this no matter what. and causes us always to
re-focus the selector icon.