GameObject tag not found when run on a device(android)

I have a script where I just Debug.log(gameObject.tag) in the awake method. It works fine in the editor but when I do the same thing but on an android device I get the following exception:

UnityException: Tag: MainMenu is not defined.

Why?

I decided to change the tag from MainMenu to some of the defaults available. It got printed both places, editor and device. Then I was amazed at how is this possible and decided to get it back to as was previously with the MainMenu tag. So I clicked to set to MainMenu tag and the tag wasn’t there?! So I added the tag again and it worked like a charm. I hope it helps!