rapid7/metasploit-framework — pull request #2159 by jlee-r7 (2013-07-25 19:58:41+00:00)
Title: Fix nil deref in spool command

Occurs when no module is currently `use`d

### Verification:

- [ ] type `back` to get out of any module context
- [ ] type `spool whatever`

#### before
see ```[-] Error while running command spool: undefined method `type' for nil:NilClass```

#### after
see expected successful output ```[*] Spooling to file whatever...```