Issue #3002522 by andypost, Matthijs, tim.plunkett, wizonesolutions: Calling StatusMessages::renderMessages() with a returns a faulty render array (cherry picked from commit e1b6d232)