fixed search-replace commands if search fails (do not insert then)

 * updated TODO