The condition must not check FBTrace.DBG_NETEXPORT. If the option is not set (most of the cases) it breaks the security check. 

Honza