Check for start err
Merge pull request #1495 from bootstraponline/fix_null_crash

Avoid crashing when device is null