Send the pending frame callbacks when hiding the window

We've stopped rendering, and we won't get the QQUickWindow::afterRendering
signal anymore, so send out any pending frame callback so to not block
clients.
Merge pull request #163 from giucam/callbacks

Send the pending frame callbacks when hiding the window