Check if internal portfolio is accessible or if an url has been provided

Waiting for https://github.com/claroline/CoreBundle/pull/882 to be merge before merging.