Attempted fix for plugin loading crash.

#269 in tracker.