Bug 1042319 - [Gallery] Update gallery edit UI r=djf

I don't get why you're doing the typeof check...