fixed handling undefined findstamp

Moved code after call to findstamp to catch bad run