Fix a potential crash after offline rendering...