Fix DDBNEXT-1126  PDF Generation Fails completely on the /current
instance
Fix variable definition
Merge branch 'DDBNEXT-1126-PDF-Fails-On-Current' into develop