This looks like a bug in the Sharing module that occurs when you have Sharing enabled and are viewing a page with a “blank” attachment on it, for example an attachment left over after you have deleted an item.
We can fix the issue, and you should also be able to delete the “empty” attachment from the page and solve the problem that way.