Allow master logging in --metrics mode

cluster.worker is null in the master, not empty.

Introduced in 1c92540324e34774209d926e977f40c1488a6790.

/cc @sam-github