Current task is not working when you don't have MAPBOX_ACCESS_TOKEN environment variable set. Actually, it always creates a file in which mapbox_access_token is null which throws a MapboxConfigurationException crashing the app.
It's fixed in mapbox-navigation-android so porting those changes would fix the issue.