Fix ResolvedFileContext comparison.

The order of JS extensions and imports does not matter.

Change-Id: I452e8e6e64f588b061211031968d5741c01339d8
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>