Added checks whether given template-ids and object-ids are correct

Please, merge these changes of object_in_fluid.tcl script.
Thank you,
Iva Jancigova