"unable to find this record" issue: possible fix

A false alert was generated when form/details had some list views to display using content plugin code and the list (s) had some view/access restrictions set in prefilters and access settings. 
Additional condition in if statement ensures that the error msg would apply only to the current form or details view.
Merge pull request #1268 from jaanusnurmoja/patch-44

"unable to find this record" issue: possible fix