BUG/API: allow get_indexer to work with nans

closes #7820