Cameras at a California Starbucks captured a man wearing an Optimus Prime mask attempting to rob the cash register before a customer hit him from behind with a chair