Backport "Framework: AOSP Fix - starting window memory leak" from CM10.1
If starting window is added to arrays like mViews in
WindowManagerImpl.java, but not accepted by WindowManagerService,
we leak starting windows. To avoid leaking, remove the view
from WindowManager.

Originally author: Mathias Jeppsson
Backported from CM10.1