fix for CRM-14397

Signed-off-by: Jaap Jansma <info@edeveloper.nl>