framework: AOSP fix for leaking window

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.

Signed-off-by: Lukas Reuter <lukas.reuter.lr@gmail.com>