Use description HTML structure instead of categories to identify license

Categories do not always work due to bug 56598.

Bug: 56143
Change-Id: Ibaf09360041408e9bf9692056572f5b23b7f7c08