Code cleanup

- Remove unused assignment to null;
- Remove useless casting to String
- Remove useless checkState because ghostdriverpath is never null at this point