fix crash when windowBackground attribute set as @null