Added check for the actual value.

There's an issue that it will autoclose the location list
for anybody who opened it. Funny enough though, the behavior
I was trying to mimic (i.e. Syntastic) has the same known issue.