Fixed NPE when viewing rendered diff in new window