#168 NPE in reorderLayer(), if the pnode is not set
Merge branch 'bug/168_npe_in_reorder_layer' into dev