As not all pages have the robots param defined, we got a warning: WARN calling IsSet with unsupported type "invalid" (<nil>) will always return false. This is solved by adding an additional "isset" check.
Stolen from https://github.com/dereckcurry/hugo-robots-meta-tags