Issue #3497935 by prudloff, smustgrave: Renderer::getCurrentRenderContext() triggers a TypeError when there is no current request
#445059
#445051
#445038
mentioned in commit ae7c8a62
mentioned in commit e66f0fc3
mentioned in commit fc979f15