Addded some logic to Plugin

prevents getName() (and others using the inf file) throwing NPEs because the inf file wasn't set.
This happens if someone uses stuff like getName() in the constructor or before the constructor is called.