Don't crash if chapter has no items.

Change-Id: I37d61c0c29ecfea894937db1cdb9c61ec9464823
Merge "Don't crash if chapter has no items."