Bugfix that checks indices in the BasketGateway
The BasketGateway fetches data from the db twice in getBasket. This produces a warning if the basket id does not yet exist because the result of the first fetch is empty.
Steps to reproduce
Fetch the details of a basket directly, e.g. via 'xhrapp.php?app=basket&m=bubble&id=99999'
What is the current bug behavior?
The function accesses indices in the response array that do not exist and produces a warning.
What is the expected correct behavior?
It should check the indices and return false to indicate that the basket does not exist.
Small bugfix that checks the indices.