Add a more helpful error message when the transport is undefined.

When creating a profile with no transport, or just not setting a transport fatal errors were emitted. A proper exception seems nicer.

Refs #3982