Code cleanup

- Remove unused assignment to null;
- Remove useless casting to String
- Remove useless checkState because ghostdriverpath is never null at this point
Merge branch 'code-cleanup' into 1.3.x