Fixed some really stupid bugs.
Fixed some really stupid bugs.

Things I forgot to do the first time around:
    Check if there were actually any classes before adding them to the
    "classes" list.
    Check if there were any items in the classes list before processing
    it.
    Add items without any classes to the tree.

Thankfully, it's all fixed.

TheBerkin/Rant