fix set_last_checkpoint when no checkpoint

closes #3260