Check that offset is greater than 0 when running posts loop. Fixes issue #316