Fix #953
Avoid an unnecessary stacktrace