Add error checking to label getter