Ensure that a valid offset is sent, even if undefined (bug 1041719)

r? @ngoke @spasovski