In some situations, the previous brush is not set. This usually happens with previous version files. Related to T78155.