Fix return types in the case of no statistics
Logging for the gethiststats subsystem