Only remove oldChild if it's not null
Merge pull request #83 from scompt/child_reuse_crash

Only remove oldChild if it's not null