fixed bug with internal server error when clicking cancel on "Create new item" screen