Fix #24 Handle tasks without port assigned