Added safety check for next/prev checkpoint loading.