Moved accessing the cluster object higher up in the code, and then passed the objects value directly instead of assuming there was a cluster returned.