Add function to test if UpdatePropertyCache is necessary

Add a function to test if calling UpdatePropertyCache is necessary. Introduce this function to the MolBlockWriter to prevent getting an exception when working with not sanitized molecules.
Ups, I have found it now 😁