I think it's a chance thing, I'm not too sure myself, but I've beaten a lot of boss mega evolved pokemon and not received a single keystone fragment yet
Sounds like a good idea, if it declares the ultra beast with also a different colour text so some people can also tell the difference, some new players don't know the difference