Fix exception when calling Hash.statuses with an empty database