It would be fine since you applied for an extension when your status was valid (you will be in implied status).
You apply for restoration only when you lose your status. You lose your status when you do not apply for an extension before the expiry of current status.