Fix `.update` called on None when patching objects