Fixed a bug in main attempting to send an IM to NULL_KEY

Added a debugging flag DEBUG_BADRLV which will simulate as close as
possible a viewer without RLV support this will make it easier to
test and debug potential issues tied to the lack of RLV support.