Add error handling to lcd_display_lines in lcd library.