Cannot extract the property value of ‚DeletedItemCount‘

When querying mailbox statistics in an Exchange organization using the following cmdlet (example) you might receive a warning that the object has been corrupted, and it’s in an inconsistent state.
