Avoid updating styling of views without a window