sixlowpan: handle malloc error

The return value of malloc wasn't checked before, resulting in possibly undefined behavior.
Also remove a redundant (re)assignment.
I should stop reading the Linux man pages...