put in if statement to catch last input not calling enableEditorNextField
Merge pull request #496 from PRX/javascript_error_fix

Item show: don't allow editor to advance beyond last line