Fix #524: avoid dereferencing of NULL pointers for APSs
When calling pcPicCurr->finalInit() pointers to LMCS APS or Scalining List APS can be zero. Dereferencing those is undefined. It's also not necessary, because the arguments passed as reference are later converted to pointers again.
Edited by Frank Bossen