Hotfix for #5912: wrong datetime select form element cloning logic

Hotfix for #5912