 The gas cap used in the film was fake. As every Herbie fan knows,  Herbies gas tank is under the hood, (as revealed plenty of times in  the original movie). The fake gas tank was added so that the gem  thieves could easily stash the diamond inside Herbie, without  looking inconspicuous. The tank was removed in the remaining  sequels.