Save the last known stock close price and use that instead of the zero value.
Toggle a variable that the prediction will be less accurate since generated data have been used, we probably need to decide a percentage for when the prediction is not valid due to too much "fake" generated data.
When the stock price is zero we should: