Just going to give this a try.
The Fix is proposed to be:
// Set Playlist Dashboard Page Permission
$this->execute('INSERT INTO `permission` (`entityId`, `groupId`, `objectId`, `view`, `edit`, `delete`) SELECT '.$pageEntityId.', '.$groupId.', '.$playlistDashboardPageId.', 1, 0, 0');
// Set Library Page Permission
$this->execute('INSERT INTO `permission` (`entityId`, `groupId`, `objectId`, `view`, `edit`, `delete`) SELECT '.$pageEntityId.', '.$groupId.', '.$libraryPageId.', 1, 0, 0');
// Set Users Page Permission
$this->execute('INSERT INTO `permission` (`entityId`, `groupId`, `objectId`, `view`, `edit`, `delete`) SELECT '.$pageEntityId.', '.$groupId.', '.$userPageId.', 1, 0, 0');