Fix body element reference when not using a custom container