Filling 'data' with an empty array when the HTTP response is not 200.
This way we can avoid errors when handling this variable.

Before this change, when an error ocurred (eg. authentication error) the
application stopped.