Committing this since it does fix broken logic (previously in that condition obdata would always be set to NULL, since `BKE_object_runtime_reset()` is called before). However, this has presumably been broken that way since 05/2018, so maybe that whole condition is not needed anymore? Or NULL pointer was working as well here? @sergey eyes are required here I guess ;)