Fixed bug where retrieval of STP by networkId would throw NPE on invalid an invalid networkId.