Only load engagement report library when required & fix failure when using the block with large courses