correct popdoc geometry when it is not initialized yet (fixes #3888)