Fix off-by-one bug in JDBCJoiningFeatureReader

This supersedes and closes #281. Please refer to that request for comments.