Fixed ‘doReport’ to take into account that ‘fopen’ can return NULL (fix for: https://github.com/pharo-project/pharo/issues/13773).