fix import hooks bug that returns false (instead of null) when module not found