Fixed a crash that could occur when data was missing.