Prior to this if a backend had reported only target_portals and left
out the target_portal option the exception handling would break. To
support this we will just check first and then use a more tailored
exception.
Change-Id: I528e05ae88938a3acc6715e25cb4719dca3eed10
Closes-Bug: #1577601