Fix for #57

This fixes the issue #57.

Maybe there are some more calls to "getOrientation" without an assigned endpoint, which also need to get fixed.