fixes bug 882671 - Correlations signatures might not always have a key hits

@rhelmer r?

The reason I didn't bother with adding tests is because this is a rare and temporary solution whilst we depend on .txt files. 

On a side note; it's a bit scary to see repeated code on two different places in views.py. Shall we fix that too?