fixed bug where log message was using resource id of a deleted resource resulting in printing of a None type.