Add hasDisplay check after createWsiDisplay throws