Enable RestKit to work without nested contexts

This pull request enables RestKit to work without nested contexts.