Check it constants are defined before defining them

PLAT-131 #
Required because the API bootsraper is included from alpha in three
places, myInsertEntryHelper, kwidget action and create mix action.