MDL-39401 portfolio: fixed setType() warnings in box.net and flickr portfolio