Add extra check for the value of mission duration (fixes #15).