Prevent type not present exception when no security on classpath