Hidden flyout resize fix

The last flyout resize fix only handled resizes where the flyouts were shown, if the flyout is resized while hidden a similar issue occurs. This pull request fixes it for hidden flyouts aswell.

(Thanks to @RenEvo for [this code](https://github.com/MahApps/MahApps.Metro/issues/117#issuecomment-9187182) )