Fix 500 error when device has no status