NPE fixed by correctly implementing equals
Merge pull request #39 from SergeyKemaev/instance-status-npe-fix

NPE fixed by correctly implementing equals