How do I get past the ledge outside the kitchen in Machinarium?

You do not have to start the game over. Simply talk to the girl robot and get her to fill the motor with oil a second time.