Check for ebib-cur-db before setting buffer modification