Fix crash when saving empty recipe