Attempt to fix https://www.drupal.org/node/2323795 with a check in PluginEngine. Still weird why ->valid() is not sufficient.