Fix #20907 - Crash when starting a plugin with no score open

Fix #20907 - Regardless of check code in a plugin, starting a plugin with no score open crashes the program.

A diagnostic "prinf" statement was unconditionally trying to access the score name, even with no score. Corrected by adding a condition.