If you go to an open mic and play a song, the facilities subscription to BMI or ASCAP pays for the royalties?
You are not being paid to sing so it is ok.
If you were being paid to sing that song it opens up a whole different set of contracts, compensations and lawyer bills.