* set the plugin version if there is a migration handler * only call panel migration if the version changes * set the version after change also * avoid NPE... check that we have options * destroy is based on the previous panel type, not the next one * Panels: Minor refactoring on panel plugin version code, #16186