Fix undefined index 'lastmodifiedby' notices

Change-Id: I2cac90492d400e3cfdcdb78cfc0a7cb7438d68ef
(cherry picked from commit cc1e220c6ce67d65e7c1d98836060e5282b75dcb)