Fix php error when switch/network printer have empty name. closes #2364