Null Check For isa<> and dyn_cast<>

This pull request tries to fix the issue when program crashes due to passing null pointer to isa<> or dyn_cast<>.

See also: oclint/oclint#66