build: Fix up case where we have no previous build for a component

There is no parent.  While we're here, let's change things so that we
always give null for a parent to commit.