Returns a 404 is a relation is None
Updates test to check for 404 instead of 400.
Don't use abort, simply return so we can jsonify it.
Records changes due to previous commit.