Bug1028800-[Gallery]- Fix of gallery pick activity is dismissed when invoking app goes to background r=djf