Bug 1013870 - Implement isValidFragment() in GeckoPreferences (r=liuche)