Fixed crash when saving empty recipe.