Fix #4047 - undefined method `rank' due to an invalid encoder name

Fix #4047 caused by an invalid encoder name. Also added elog() to
avoid shutting everything up in msfvenom
Land #4166, @wchen-r7's fix for undefined method `rank'

* Fixes #4047
* undefined method `rank' due to an invalid encoder name