Fix potential NPE in summary decorator