Fix exception when calling resume() without first calling suspend().