Merge "liblp: Fix a crash when adding an image to a partition with no extents."