Fix the Contingent handling

It is of course the CommandModule's command, not the CommandModule
itself, that wants to be cast to Contingent.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>