Apply CommandResult to correct command instance

This fixes a problem where we couldnt apply validation errors to a
command based on the returned CommandResult