Fix bug with externally loaded datasets not being added to dashboard state