fix occasional crash on startup

Donagh,

  tiny merge request to fix an occasional crash observed on startup - occurs sometime depending upon which combination of plugins you use.

David