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 Jul 30, 2016 at 03:27:59.
(provided by the Example extension).