fix npe when a project doesn't have datasets