A homeless man tried to buy breakfast at Burger King and ended up jailed for three months