Issue #3035980 by jhedstrom: Provide a better error when a NULL is passed to EntityStorageBase::load()
mentioned in commit 99c6cfcc