Fixed occasional null reference bug

After frantic clicking in and out of a text editor, I'm able to occasionally raise a null reference error because 'bounds.x' isn't defined and not being caught.