Fixed possible null reference exception in the ViewStack for Silverlight