Unfortunately it is a bug. It is reported as MDL-67360. Please vote for the issue to indicate you would like it to be fixed.
Thanks Eniko for voting (and commenting) on the issue.
If anyone else reading this discussion would like the bug to be fixed, please note that you need to sign up for a Moodle Tracker account in order to be able to vote for or comment on issues.