BitmapLoader: fixed possible division by zero in debug mode for stats