Conditionally add the :file key to render

render will try to render a file if the :file key is given,
even if it is nil.