Bug 1033403 - [Messages] We don't stop rendering if we tap "back" too so...

...on r=azasypkin

This moves the moment "initializeRendering" is called: in beforeEnter instead of
afterEnter.
mainly, the function definitions are not really part of the function code, and I thought it was better to put this if block in the function code. But well.