use gocheck asserts instead of fatal Upstream-commit: 48fe12af0c785d62ac852ea8428a9789a4e9d7fd Component: engine