Don't crash when user can't edit tree

fixes #110 on github
Merge pull request #117 from steventlamb/topic/110_unprivileged_edit_crash

Don't crash when user can't edit tree