Add sanity check to tags attribute so it doesn't break authentication