Hide newRecipeButton and generatePDFButton

In recipe there was a possibility to get an uncaught error. Checking for
null should solve this.