Error is thrown if current pod data isn't an object

This checks to make sure that current_pod_data is infact an object before using it as one.