bug flash on info - endless loop

this change breaks the endless loop in case of info==nil (bug flash on info)
issue #413
Merge pull request #414 from Raggyx/patch-5

bug flash on info - endless loop