When Phabricator fires an notification about an object the Notifications
bot users can't see, PhabricatorStory::getRepositoryPHID API reply is [].
As the code tried to access it as an object, a null exception ensues.
The issue is similar to T916 / f1e56313d6e9.
Fixes T993.