Handle cases where InternalPreserveStackTrace does not exist (fixes #4)