This bug was fixed on the master branch in 006f6525057970a74382132237b2131286ad147c but is also present on server-1.4-branch. I'm attaching a backport here as there's a small gotcha.
Created attachment 11798 [details] [review]
on Mar 29, 2017 at 17:03:01.
(provided by the Example extension).