Check for non-null applet dir before continuing