Fixes a security issue due to a line of code used for debugging left in the 7.x-1.4 release.
See SA-CONTRIB-2011-005 http://drupal.org/node/1048998
Prevents NULL grants.
#1040564: Bug with newest rc2
Prevent redundant grants.
* Fix for undefined reference when edit['name'] isn't initialized.
#1040374: Error message on permission rebuild