added check to make sure mailpoet is activated before initializing