MDL-41339 Tags: Added unique tag instance id to tag_get_tags functions

Avoids php warnings on creating new tags