Nikola Corp. reported a narrower-than-expected loss in the fourth quarter, promising to focus on its core business of electric and fuel-cell commercial trucks.