Handle missing hash elements more gracefully.