[BUG] fix Division by Zero error

After upgrading, fix a cookie issue returning non-empty string but that evaluates to `0`
hence the division by zero, `Showing 0 to 0 of 0 results`, empty table, etc..