do not accept elements out of bounds
it was accepting them, but some queries did not work correctly
Authored by: thibautd 2014-02-06
Parent: [r27839]
Child: [r27841]