Fixed 'Bug 17227 - null-ref/cast error in codeactions API '.