Handle empty network definitions in recipe

This just makes the code more solid.