Patch for window loading crash that came up in API 8