Fixed the for loop inside receive()

SoeProtocolHandler was not returning any list in most of the cases.
I have put a condition for the decode() method returning null. This
should stop the NullPointerExceptions.