[SeeRM:#8123] - Pid check

PID should be checked before using it.


[SeeRM:#8123]
http://dev.metasploit.com/redmine/issues/8123