Change render method for Mojolicious 5.0.