Root 8563 fix out of bounds index (#452)
Root 8563 fix out of bounds index (#452)

* fixed a crash, which occured on logging the output of the last NeuralNet layer: previous code did not consider the case of multiple outputs from the last layer

* modified code formatting

* removed commented code

* added additional check to correctly work in case doFetchOutput argument is false

* minor correction due to the fact that outputSize() return number of nodes on the last layer - 1

root-mirror/root,bbockelm/root,olifre/root,zzxuanyuan/root,zzxuanyuan/root,zzxuanyuan/root,simonpf/root,simonpf/root,bbockelm/root,BerserkerTroll/root,olifre/root,agarciamontoro/root,zzxuanyuan/root,agarciamontoro/root,bbockelm/root,zzxuanyuan/root,zzxuanyuan/root,root-mirror/root,simonpf/root,karies/root,karies/root,davidlt/root,olifre/root,agarciamontoro/root,mhuwiler/rootauto,agarciamontoro/root,zzxuanyuan/root,davidlt/root,simonpf/root,BerserkerTroll/root,agarciamontoro/root,mhuwiler/rootauto,davidlt/root,BerserkerTroll/root,bbockelm/root,zzxuanyuan/root,davidlt/root,mhuwiler/rootauto,BerserkerTroll/root,mhuwiler/rootauto,mhuwiler/rootauto,bbockelm/root,agarciamontoro/root,agarciamontoro/root,olifre/root,davidlt/root,root-mirror/root,karies/root,davidlt/root,bbockelm/root,olifre/root,davidlt/root,agarciamontoro/root,simonpf/root,zzxuanyuan/root,agarciamontoro/root,root-mirror/root,simonpf/root,zzxuanyuan/root,root-mirror/root,root-mirror/root,agarciamontoro/root,simonpf/root,simonpf/root,mhuwiler/rootauto,zzxuanyuan/root,davidlt/root,olifre/root,bbockelm/root,root-mirror/root,BerserkerTroll/root,karies/root,BerserkerTroll/root,olifre/root,karies/root,root-mirror/root,davidlt/root,olifre/root,karies/root,bbockelm/root,karies/root,mhuwiler/rootauto,olifre/root,bbockelm/root,karies/root,karies/root,mhuwiler/rootauto,davidlt/root,olifre/root,root-mirror/root,karies/root,simonpf/root,mhuwiler/rootauto,BerserkerTroll/root,simonpf/root,BerserkerTroll/root,BerserkerTroll/root,agarciamontoro/root,olifre/root,simonpf/root,bbockelm/root,BerserkerTroll/root,bbockelm/root,davidlt/root,root-mirror/root,zzxuanyuan/root,BerserkerTroll/root,root-mirror/root,mhuwiler/rootauto,karies/root,mhuwiler/rootauto