OK, I have added an explicit check, with a proper error message, to the beginning of the pluginInit method.