Also checks for 'nil' in the layout such that nil.html is not a valid option

Technically, `layout: null` is the correct way to specify `{"layout" => nil}` in the front matter.