Fixing issue where passing empty strings to classList.add/remove functions was spawning DOMTokenList exceptions that caused an app crash