mwext prevent loading an empty extension

Whenever 'dependencies' is the default empty string, we would end up
attempting to load an extension '//.php' which fails horribly.

Only inject dependencies when they actually exist.

Change-Id: I95243a092c98b657354d7ec38eefe222c748994f