Why am I getting a NullPointerException when sending credential management reports by e-mail ?