Fixed STAMP profiles with Unclassified categories

Better handling of STAMP profiles with Unclassified categories. Fixed
degenerate cases when parent categories have zero reads.