machined: check correct return value for NULL
machine: fix -Wmaybe-uninitialized warning

The return value of machine_start_scope might be undefined if m->scope
is non-NULL.