Fixed backgrounding crashes when stack is not initialised.