Added some check to prevent initializing object after proper app start

Not sure if this is needed at all, but....