Fix missing cmpTechnologyManager check in Commands.js
Check for cmpTechnologyManager existence to avoid calling function on null when upgrading entity requires some technology to be researched.
Differential Revision: https://code.wildfiregames.com/D2632
Fixes: #5668
Patch by: @Ampaex