Tiled Galleries: sanitize all widget inputs, not just those with predict...

...able values

Merges r97404-wpcom.