PIM-2365 Fix DefaultTransformer to allow using 0 as entity codes