Fixed runtime error

Now checks if the building owner was adding as a unit before he builds a
building.