Handle undefined offset in app selector (bug 1035426)

r? @ngokevin

I'm not sure how data-offset is returning `undefined`, but we should handle that case anyway.