fix to allow integer label refernces

What does this MR do?

this fixes the problems with referencing integer labels as in #38075

Are there points in the code the reviewer needs to double check?

  1. I changed the reference pattern in Label model. will it break anything?
  2. Why label id was used in format instead on :name in system_note_service.rb

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#38075

Edited by username-removed-1495853