Issue #2819219 by BR0kEN: SystemMainBlock could lead to fatal error in case if "setMainContent" method will not be called