Fix for crazy alert seen if user denied app gallery access.

Change-Id: I09e17311c3b8e888d2885fe283bb45156d704b9e