Fix the crash when capturing screen on WP8