Check to make sure the operation's input attribute is not None before looking for a shape_name in it.