do not call simplify_taxonomy_for_json() with a NULL taxonomy object

discovered while working on https://github.com/GigaOM/legacy-pro/issues/4125