Only configure deploy_[kernel|ramdisk] if not nil

If either deploy_kernel or deploy_ramdisk are nil, do not include them
in the template output.