bugfix for empty gray class name

Don't set options.classes to an empty array if it doesn't exist.