Fix error caused when passing empty array into setSpecialCaseTags