Invoice template changed after update

I’ve created a custom template by copying a template from the database to a new record. After that I changed the template and selected it for my invoices.

Now I’ve noticed (or actually one of my customers) that the template of the invoices is changed. It just selects another template instead of the template that I’ve selected in the settings. I think this has to do with an update.

It could be related to this change: