Adding a null check for entity_id
PathautoFieldItemList::computeValue() can pass a null value into getPathautoStateKey which causes an error which can get in the way of ajax processes amongst other issues. This quick check makes sure to catch the null check and return a null which is what currently happens anyway if the entity_id is null.
Closes #3394550