Added null check to options.classes before adding to tooltip element

Added null check to options.classes before adding to tooltip element