! $context['from_ajax'] isn't always defined (fixes #1497)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>