Fixed bug where valid_classes option would cause exception when it removed internal prefixed classes like mce-item-.