LPS-49318

Ticket: [LPS-49318](https://issues.liferay.com/browse/LPS-49318)

Only add a semi-colon if `onClick` does not already end with one.