lastgenre: fix crash with canonicalization