Fix a crash in piqic-erlang

it was crashing trying to ++ malformed lists