Fixed bad resource comparison.

@airbnb/di