452246 Fixed SSL hang on last chunk

Back ported refinements from 9.3 to handle empty arrays