handle case of no external storage throwing NPE #247