Added null check in OperationExecutor.isOk()

Fixed an NPE in OperationExecutor.isOk() by adding a null check.