window: Protect against trying to build(0)