eSourcing Id was not repopulating when cookie was refreshed 

Refactored to avoid future problems

https://www.agileplannerapp.com/boards/187120/cards/6337


Requires a bug fix to DM to fully solve problems with eSourcing Id notifications. (See discussion on card)