Check that socket object exists before calling subscribe

This fixes #724, which was throwing an exception if `publishCreate` was called without a socket `toOmit`. It keeps the intended fix of #628 while removing the unintended side-effects of removing that check completely.

Fixes #724
Fixes #626