EC_Mesh: Handle mesh ref change regardless whether we're running as headless or not, otherwise OgreMeshAsset::ogreMesh will be null. The mesh data is something that is useful in headless mode too. f.ex. for bounding volume retrieval. Also some small cleanup.