You are fine, it does not matter if your study permit expires as long as you applied in time. You can also work while waiting for a decision if you meet the following conditions (copied from CIC's website):
Can I work while I am waiting to receive my post-graduation work permit?
You can work...