don't bother with an offset if the offset is zero

we're guaranteed to pass a numeric value for offset, so if it's zero,
just don't add an offset to the query