Gary O'Neil was given a yellow card after complaining to the referee following West Ham's controversial opener.