Fix NPE by Sender is CommandBlock