fix crash after trying to display image picker without gallery permissions