Check if plugin contains some mojo, and send an exception instead of NullPointerException if it isn't the case.