Fix TypeError in extraports_* functions

Sometimes there is no extraports tag. In this case a TypeError is raised, which is confusing. Either a proper exception (MissingExtraports or something) should be raised, or None returned. This patch does the latter.