Fix javascript error while revert to default new property

### What does it do ?
Fix javascript error while revert new property to default (which doesn't exist)

### Why is it needed?
If you create property that has no default value the menu action "Revert Property to Default" yield javascript error in manager\assets\modext\widgets\element\modx.grid.element.properties.js:
```
TypeError: d is undefined
rec.set('name',d[0]);
```
Need a check for existance of variable or not to add this menu item at all.
That is only in element properties. In Property Sets menu there is no error if you choose element.

Same error if you create new mediaSource property and then try to revert back to default.



Also small fix in permission list. While in modx.grid.js 
```
onMouseDown:function(e,t){this.grid.fireEvent('rowclick')
```
onPermRowClick fires 2 times and first time has no needed parameters.