Bug 956428 - Add checks on set/getPreferredNetworkType r=jaoo

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