refactor method signatures for subtask and subnode getters

Update the exception declaration for subtask and subnode getter methods,
so that the high level methods are not burdened with handling
unnecessary exceptions.

Change-Id: Ida8fb5044147ffe8e5666a28610f7ec5702b0caf
2 files changed