fix occasional crash when starting

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