Apply "Don't register files without functions and properties as source for package proxy file in jps"

Based on patch from Evgeny Gerashchenko <Evgeny.Gerashchenko@jetbrains.com>
-- revert test