Fixed bug that caused runtime error in module_rank.rb

Proposed fix for this issue: https://github.com/rapid7/metasploit-framework/issues/2870