Handle non existing method scopes.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>