Added support for migrating new roles to destination. Some more fixes for php notices.