fix local->remote fallbacks
(just foo is error; window.foo is undefined, works as false)