Hi Martin,
With the PST provided in issue #50, the item referenced by getColorCategories was actually set to a false value instead of simply not existing.
I've added a couple of lines to address this issue (github), can you please check and let me know if that addresses your issue? If not would it be possible to provide me with the PST you are using?
Thanks,
Richard