Fix vanishing menu bar problem on non-MacOSX

Since all Platform instances are registered as event listeners by virtue
of having a Context injected into them before they are asked whether
they actually match the current platform, the onEvent() method *must*
be careful to quit early when it is running on the "wrong" platform.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>