Fixing class cast exception when using transition color drawables.