Hide "Details" accordion when detail message is set to null.
Change calculation procedure to use Stream API.
Fix suggested by N.Agetsuma