check that methods exist before calling them

it's possible that some things aren't defined in exceptional states

closes jupyter/jupyterhub#22