API: Removing a project member that doesn't exist results in 500
Created by: Xylakant
If I try and remove a user from a project where he isn't member, the API crashes and returns a 500 error. The relevant excerpt from the log is:
NoMethodError (undefined method `destroy' for nil:NilClass):
lib/api/projects.rb:135:in `block (2 levels) in <class:Projects>'
As removing a user should be an idempotent method, the result should be 200 OK.