Added null check on object and using preiously unused parameter time.
Merge pull request #3 from MorganDawe/MorganDawe-7.x-WRLC-66

Added null check on object and using preiously unused parameter time.