Fix error catch for empty API

Also print the patches branch to LOG, in j/i/c I get a bug report again.