Fixed a bug which presented a dialog for null layers failing to sync.