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 Feb 28, 2017 at 09:58:51.
(provided by the Example extension).