bugfix: check that message expr is null or not