Fixed bug with automatic start of devices.

A device would be started before the NodeLibrary was entire loaded in the document, causing failure.