Error when try to edit webuser profile using the webuser space

Traceback (most recent call last):
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/website/render.py”, line 32, in render
data = render_page_by_language(path)
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/website/render.py”, line 101, in render_page_by_language
return render_page(path)
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/website/render.py”, line 117, in render_page
return build(path)
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/website/render.py”, line 124, in build
return build_page(path)
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/website/render.py”, line 137, in build_page
context = get_context(path)
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/website/context.py”, line 18, in get_context
context = build_context(context)
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/website/context.py”, line 73, in build_context
ret = context.doc.get_context(context)
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/website/doctype/web_form/web_form.py”, line 122, in get_context
if frappe.form_dict.name and not has_web_form_permission(self.doc_type, frappe.form_dict.name):
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/website/doctype/web_form/web_form.py”, line 425, in has_web_form_permission
elif frappe.has_website_permission(name, ptype=ptype):
File “/home/frappe/benches/bench-2016-12-13/apps/frappe/frappe/init.py”, line 505, in has_website_permission
doc = get_doc(doctype, doc)
UnboundLocalError: local variable ‘doctype’ referenced before assignment

fixing via https://github.com/frappe/frappe/pull/2455

ok thank you