Detected in bug: https://bugzilla.samba.org/show_bug.cgi?id=13027. Patch to follow.
Created attachment 13654 [details] git-am fix for 4.7.next. Cherry-picked from master.
Reassigning to Karolin for inclusion in 4.7.
Pushed to autobuild-v4-7-test.
(In reply to Karolin Seeger from comment #3) Pushed to v4-7-test. Closing out bug report. Thanks!