fixing issue so that we can remove even if the data is corrupt(ie. row doesn't exist but entity has reference to it)