Merge "liblp: Add a helper to differentiate empty from non-empty images."