Added fix for NPE in get my classpage