fix segfault when getting message properties