handle when there is no current class

getCurrentClass() can return false