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 Jun 25, 2016 at 12:13:46.
(provided by the Example extension).