After showing gallery permission error, hide the gallery.

Change-Id: Ibaf88324f30f2fe8241784d996d2c25ea8baa7a2