Fix crash with empty picker data

Add sanity check before do some actions with picker data