Updated the record array helper functions to create an empty record array where necessary
Authored by: sameerd 2009-05-28
Parent: [r7158]
Child: [r7160]