Update friends.js

Prevents modules like 'whois' from crashing when given an empty argument.