In the current master, the lines of code seem to have been changes ~last month as seen here 20 so it could have been a bug, which was fixed recently.
Could you install the latest nightly binary (or build from source) and rerun your code?