LPS-50613 Use portletModel to get classloader.
LPS-50613 Add null checking in case unschedule is invoked more than one time.
LPS-50613 Fix unit test.
LPS-50613 SF