Corrected command.msg function to work with the changes introducted with MULTISESSION_MODE=3, e.g. the replacement of session id (int) for a session handler object.