fixed NPE in docs generator