Added null check for the CommandExecutorMDB.