MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828)