Also check if 'debug_backtrace' is disabled in Maintenance::shouldExecute()

And execute the script if $wgCommandLineMode is true. Otherwise scripts
never get executed.

Change-Id: I609d859b616905ab44a060a861be500609e5a9f0
Merge "Also check if 'debug_backtrace' is disabled in Maintenance::shouldExecute()"