fixed compile error in ultralcd.cpp when PIDTEMP undefined

With PIDTEMP undefined, ultralcd.cpp would not compile. Added checks to fix.