Debugger: Fix potential crash.

VariablesView:
- Check to ensure the stack frame actually does have a function
  object associated with it before attempting to use it, as this
  isn't always the case.