Fixed moosedocs.py to check if MOOSE directory is initialized
Fixed moosedocs.py to check if MOOSE directory is initialized

Closes #19705
sapitts/moose,bwspenc/moose,bwspenc/moose,lindsayad/moose,idaholab/moose,bwspenc/moose,laagesen/moose,andrsd/moose,andrsd/moose,dschwen/moose,milljm/moose,jessecarterMOOSE/moose,sapitts/moose,sapitts/moose,milljm/moose,dschwen/moose,lindsayad/moose,andrsd/moose,jessecarterMOOSE/moose,andrsd/moose,lindsayad/moose,milljm/moose,idaholab/moose,jessecarterMOOSE/moose,idaholab/moose,harterj/moose,sapitts/moose,idaholab/moose,idaholab/moose,andrsd/moose,jessecarterMOOSE/moose,milljm/moose,dschwen/moose,lindsayad/moose,harterj/moose,laagesen/moose,sapitts/moose,lindsayad/moose,harterj/moose,laagesen/moose,milljm/moose,dschwen/moose,bwspenc/moose,harterj/moose,jessecarterMOOSE/moose,laagesen/moose,dschwen/moose,bwspenc/moose,laagesen/moose,harterj/moose