Avoid javascript warning
Remove redundant return
Pass parameters to APIAlreadyDeletedError correctly
Make the API reject changes to closed notes