Make sure $data is defined in getModifications()

This method seems to sometimes be called with a data arg and sometimes not. Both ways of calling it was broken since it didn't take a $data arg and it didn't use $this->data either.