Fixed null pointer exception when right clicking on empty block