Store instance before triggering error

We might need the instance still even though no engine could be
initialized, otherwise flowplayer() function would return null.