CommandInfo: fix NPE in createModule method

This bug was introduced in 541005824c723dd05a6cb7e9842562ead0f952dd.

The meaning of the "info" variable changed (from CommandInfo to
PluginInfo) when the code was moved from DefaultCommandModuleFactory.