Properly handle XReadBitmapFile return values.

Signed-off-by: Edward O'Callaghan <victoredwardocallaghan@gmail.com>