Much better would be to check plugin versions at the beginning
I agree, it would be more appropriate to do that check beforehand, but on a clean system you cannot do that check beforehand since omv-extras is not yet installed and the repositories are not configured. If you have any ideas on how to do it, I could try it.
I decided to go to risk: I rewrite version number in ORB_DpkgOMV file to fool your program a bit.
What you did may end up corrupting the system if the database format is different with the new version of ZFS plugin. That is the reason to do those checks and stop the process if necessary. It may be working fine now but in the future you may have strange problems if some tag is missing in /etc/openmediavault/config.xml
Proxmox kernel did not download and ZFS plugin works fine with the stock one. The Proxmox kernel was the version 5.4.
Kernel 5.4 is old, it has not been installed because it is not in the list of those currently installed by the omv-kernel plugin. ZFS can work without the proxmox kernel, but the system will have to compile ZFS into the kernel every time there is an update. That's the reason to use a proxmox kernel, ZFS is already built into the kernel because it comes from Ubuntu. I recommend that you install a current proxmox kernel on that system.