Fixes #761
Merge pull request #767 from metamx/fix-search

Fix NPE when searching  real-time with a non-existing dimension