always return endcursor - fixes #288

Should this be `null` as default?