Check that sync dictionary exists.

This is a small fix for issue #131.