Backend: Avoid an exception with dir sizes