Fixed getCurrentSession to return null when Pentaho session is null