Added safety check for next/prev checkpoint loading.
Added safety check for next/prev checkpoint loading.

bertrand-caron/OFraMP,bertrand-caron/OFraMP,jimivdw/OFraMP,bertrand-caron/OFraMP,jimivdw/OFraMP,bertrand-caron/OFraMP