Fix issue regarding the error message when updating an entry

* Added a check to see if `ul` command was successful.
* Break process if unproductive

Ref.: HiT-Hi-FiT-Hai/hhfh-issues#20