Quick fix for the bug I introduced

Made sure to check to see if the engine is finished being initialized
before attempting to adjust the viewport.