SONARPLUGINS-3357 Fix null pointer on semicolon check