Here you should assert that `ol.proj.get(srsName)` is not `null`. Strange that the compiler does not complain about this.