Added error dialog if trait block hasn't been dropped into behavior block.

If a breed has a trait defined, an applicable behavior block added to it,
but the trait block hasn't been added to the behavior block, and the tab
is swtich to code/run, an error dialog is shown asking to add the trait
block to the behavior block.