Fix bug when application isn't connected to gateway: the gateway component crashed since it wasn't able to get some information and so generate a nullPointerException