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.
I haven't found a UpdatePropertyCache for atoms in Python, therefore I didn't added it. I will provide an update.