Fix (hopefully) bug where an empty patch was generated.  Closes #76