Fixed bug with warning being raised in .is.graphic() call