Apparently this was a less-than-genius goblin, who hadn't really considered that wolves are pretty quick.
He takes a free action to drop his javelin, a move action to re-equip his mace, and an attack action to smash that dogs head right in. He hopes.