Make sure we don't give out positions from an sstable beyond its first/last keys.

Patch by marcuse; reviewed by belliottsmith for CASSANDRA-8458
Merge branch 'cassandra-2.1' into trunk

Conflicts:
	test/unit/org/apache/cassandra/io/sstable/SSTableRewriterTest.java