fix crash if required parameter is not passed (BNC#789911)