LinkFactory: throw InvalidLinkException if router returns null