Issue #2957129 by andriy_novak, Nick_vh: Error: Call to a member function isRenderedInCurrentRequest() on null