Bug 956428 - Add checks on set/getPreferredNetworkType

https://bugzilla.mozilla.org/show_bug.cgi?id=956428