Fixes PDO error when saving a bean without indexable permissions