Fix php error in unknown devices