Fix 1346746: init targets before using them during rendering in synfigstudio