Fixed bug were portal would return incorrect status codes for unconnected devices