Fix crash occuring when geometry not yet available