Catch JSON syntax error for selection-classes.

Sometimes something like "None" is passed in, we don't want the script to fail
in cases like this.