parameter assert for object and log any errors we enounter
document -setObject:atIndexedSubscript: