Fixes closeOnExternalClick if statement so that it checks there's a trigger before checking if the trigger contains the event target
Merge pull request #24 from Financial-Times/issue23

Fixes closeOnExternalClick if statement so that it checks there's a trig...