Fix two major issues:

- Lemon was not provided, which caused the view to not render.
- If the params are not defined, jinja2 returns "Undefined" - falsy - but not json encodable.