fix crash around CA layer geometry exception because NaN in size