if for poi-attachement in message

Signed-off-by: Thierry Le Moulec <thierry@smoothie-creative.com>