Had to add in logic to test for whether or not parameter is an object, as the in-page Refresh passes a DeviceID, rather than an object.

#256