I can't undo a partition on my macbook
For anyone saying not to delete it because it's the EFI partition, it's not. "EFI EFI"(disk0s1) is the real EFI partition. The new EFI partition is just one that was improperly created during OP's failed installation of Ubuntu.

This will erase the partition and make it show up in Disk Utility(change PartitionName to whatever you want):

sudo diskutil eraseVolume JHFS+ PartitionName disk0s4


Now you can remove the partition like normal in Disk Utility(source):


  
  Open Disk Utility.
  Click the partition that you wish to delete under the logical
  volume.
  Click the Erase tab and make sure Mac OS X Extended (Journaled) is selected.
  Click the Erase button.
  Click the logical volume.
  Click the Partition tab.
  Highlight the partition that you erased in step 4.
  Click the ‘-‘ sign and click Remove.
  Use the drag handle to reallocate the space back relinquished
  by the deleted partition.
  Click Apply → Partition.