Fix for bug 38526 - If the record claims to be longer than the remaining data, just return null and ignore it