Fix command line API and Net panel $p breakage resulting from bug 1065186

Related to issue 7687.
Fix dom/6985/issue6985 FBTest